extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]随机单词生成器"
	info = "造成技能伤害时，伤害额外提高1-160点\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.suck = 0.1
	att.cd = 0.3
	att.penL = 0.15
	
func _connect():
	._connect()
	masCha.connect("onAtkChara",self,"_onAtkChara")

var p1 = 1
var p2 = 200
func _onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.SKILL:
		atkInfo.hurtVal += sys.rndRan(p1, p2)

func upgrade():
	name = "[color=#FFFF00][史诗]随机单词生成器"
	info = "造成技能伤害时，伤害额外提高1-160点"
	att.suck = 0.2
	att.cd = 0.5
	att.penL = 0.25


